package com.bby.disk.bean.req;

import lombok.Data;
import lombok.NonNull;

import java.util.List;
import java.util.Map;

@Data
public class FileActionReq {
    /**
     * 文件操作：copy， move， rename， delete
     */
    @NonNull
    String opera;
    /**
     * 待操作文件列表 <br>
     * 示例： <br>
     * <br>
     * rename: <br>
     * [ {"id":"OISAJNAHSIO","newName":"test.docx"}] <br>
     * <br>
     * delete:[{"id":"OISAJNAHSIO"}] <br>
     * <br>
     * copy/move: <br>
     * [ { "from":"OISAJNAHSIO","to":"adfasdad" } ] <br>
     */
    @NonNull
    List<Map<String,String>> fileList;
    String ondDup;
}
